package cn.smallran.novel.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.smallran.common.annotation.Excel;
import cn.smallran.common.core.domain.BaseEntity;

/**
 * 作者信息对象 author_info
 * 
 * @author smallran
 * @date 2024-12-01
 */
public class AuthorInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 笔名 */
    @Excel(name = "笔名")
    private String penName;

    /** QQ或微信账号 */
    @Excel(name = "QQ或微信账号")
    private String chatAccount;

    /** 作品方向 (0: 男频, 1: 女频) */
    @Excel(name = "作品方向 (0: 男频, 1: 女频)")
    private Integer workDirection;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPenName(String penName) 
    {
        this.penName = penName;
    }

    public String getPenName() 
    {
        return penName;
    }
    public void setChatAccount(String chatAccount) 
    {
        this.chatAccount = chatAccount;
    }

    public String getChatAccount() 
    {
        return chatAccount;
    }
    public void setWorkDirection(Integer workDirection) 
    {
        this.workDirection = workDirection;
    }

    public Integer getWorkDirection() 
    {
        return workDirection;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("penName", getPenName())
            .append("chatAccount", getChatAccount())
            .append("workDirection", getWorkDirection())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
